package org.szy.plugin.gen.result;

import jdk.nashorn.internal.objects.annotations.Setter;

import java.util.List;

/**
 * 预览代码生成结果
 *
 * @author wangbuhao
 * @date 2022/10/28 17:03
 **/
public class GenBasicPreviewResult {

    /**
     * SQL代码结果集
     */
    private List<GenBasicCodeResult> genBasicCodeSqlResultList;

    /**
     * 前端代码结果集
     */
    private List<GenBasicCodeResult> genBasicCodeFrontendResultList;

    /**
     * 后端代码结果集
     */
    private List<GenBasicCodeResult> genBasicCodeBackendResultList;

    public List<GenBasicCodeResult> getGenBasicCodeSqlResultList() {
        return genBasicCodeSqlResultList;
    }

    public void setGenBasicCodeSqlResultList(List<GenBasicCodeResult> genBasicCodeSqlResultList) {
        this.genBasicCodeSqlResultList = genBasicCodeSqlResultList;
    }

    public List<GenBasicCodeResult> getGenBasicCodeFrontendResultList() {
        return genBasicCodeFrontendResultList;
    }

    public void setGenBasicCodeFrontendResultList(List<GenBasicCodeResult> genBasicCodeFrontendResultList) {
        this.genBasicCodeFrontendResultList = genBasicCodeFrontendResultList;
    }

    public List<GenBasicCodeResult> getGenBasicCodeBackendResultList() {
        return genBasicCodeBackendResultList;
    }

    public void setGenBasicCodeBackendResultList(List<GenBasicCodeResult> genBasicCodeBackendResultList) {
        this.genBasicCodeBackendResultList = genBasicCodeBackendResultList;
    }

    public static class GenBasicCodeResult {

        /**
         * 代码文件名称
         */
        private String codeFileName;

        /**
         * 代码文件带路径名称
         */
        private String codeFileWithPathName;

        /**
         * 代码文件内容
         */
        private String codeFileContent;

        public String getCodeFileName() {
            return codeFileName;
        }

        public void setCodeFileName(String codeFileName) {
            this.codeFileName = codeFileName;
        }

        public String getCodeFileWithPathName() {
            return codeFileWithPathName;
        }

        public void setCodeFileWithPathName(String codeFileWithPathName) {
            this.codeFileWithPathName = codeFileWithPathName;
        }

        public String getCodeFileContent() {
            return codeFileContent;
        }

        public void setCodeFileContent(String codeFileContent) {
            this.codeFileContent = codeFileContent;
        }
    }
}
